serial: MediaTek: add high-speed uart driver for MediaTek SoCs
authorRyder Lee <[email protected]>
Thu, 15 Nov 2018 02:08:02 +0000 (10:08 +0800)
committerTom Rini <[email protected]>
Thu, 29 Nov 2018 04:04:53 +0000 (23:04 -0500)
commit849b11605ae6afe4b0d146b64f4eaaa9af0a5071
tree7b9cbf79531fffbd81f77fa75509fc791bb9175d
parent9dec738a8b843bcdcf22ed3e11c59255e9f79d2b
serial: MediaTek: add high-speed uart driver for MediaTek SoCs

Many SoCs from MediaTek have a high-speed uart. This UART is compatible
with the ns16550 in legacy mode. It has extra registers for high-speed
mode which can reach a maximum baudrate at 921600.

However this UART will no longer be compatible if it's in high-speed mode.
Some BootROM of MediaTek's SoCs will change the UART into high-speed mode
and the U-Boot must use this driver to initialize the UART.

Signed-off-by: Weijie Gao <[email protected]>
Tested-by: Ryder Lee <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/serial/Kconfig
drivers/serial/Makefile
drivers/serial/serial_mtk.c [new file with mode: 0644]